package com.disease.api.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("base_user")
public class EmrBaseUser {

    private String id;

    @TableField("org_code")
    private String orgCode;

    @TableField("dept_code")
    private String deptCode;

    @TableField("user_name")
    private String username;

    @TableField("id_card_type_code")
    private String idCardTypeCode;

    @TableField("id_card")
    private String idCard;

    @TableField("tel")
    private String tel;

    @TableField("physician_no")
    private String physicianNo;

    @TableField("login_name")
    private String loginName;

    @TableField("user_type_code")
    private String userTypeCode;

    @TableField("create_time")
    private String createTime;

    public EmrBaseUser(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public String toString() {
        return "BaseUser{" +
                "id='" + id + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", userName='" + username + '\'' +
                ", idCardTypeCode='" + idCardTypeCode + '\'' +
                ", tel='" + tel + '\'' +
                ", physicianNo='" + physicianNo + '\'' +
                ", loginName='" + loginName + '\'' +
                ", userTypeCode='" + userTypeCode + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
